<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal" action="{:U('update')}" name="myfromSubmit" method="post">
                         
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> code </label>
                                <div class="col-sm-9">
                                    <input type="text" name="code" id="code" datatype="*" nullmsg="code不能为空"  class="rcol-xs-10 col-sm-5"
                                           value="{$currentmenu.code}">
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 名称 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="name" id="name" datatype="*" nullmsg="名称不能为空"  class="rcol-xs-10 col-sm-5"
                                           value="{$currentmenu.name}">
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 平台 </label>
                                 <div class="col-sm-9">
                                        <select id="site_id" name="site_id" class="rcol-xs-10 col-sm-5">
                                           <foreach name="customer" item="co" key="k">
                                                 <option value="{$co['id']}"  <if condition="$currentmenu.site_id eq $co['id']">selected="selected"</if>>{$co['shop_name']}</option>
                                           </foreach>
                                        </select>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 对应贸易ID </label>
                                <div class="col-sm-9">
                                    <input type="text" name="trade_id" id="trade_id" datatype="*" nullmsg="对应贸易ID不能为空"  class="rcol-xs-10 col-sm-5"
                                           value="{$currentmenu.trade_id}">
                                </div>
                            </div>
                           
                       
                            <input name="obj_ident" value="{$currentmenu.obj_ident}" type="hidden">
                            <div class="space-4"></div>
                            <div class="col-md-offset-2 col-md-9">
                                <button class="btn btn-info" type="submit">
                                    <i class="icon-ok bigger-110"></i>
                                    提交
                                </button>

                                &nbsp; &nbsp; &nbsp;
                                <button class="btn" type="reset">
                                    <i class="icon-undo bigger-110"></i>
                                    重置
                                </button>
                            </div>
                        </form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->

<script type="text/javascript">
    jQuery(function ($) {
      $('#exp_time').datepicker({
       
            dateFormat: 'yy-mm-dd',
              weekStart: 1,
            autoclose: true,
            todayBtn: 'linked',
     
            language: 'cn'
        });
    })
</script>

</body>
</html>
